Builder

class Builder

Constructors

Builder
Link copied to clipboard
open fun Builder()

Functions

accessToken
Link copied to clipboard
open fun accessToken(@NonNull() accessToken: String): ResourceOptions.Builder
The access token that is used to access resources provided by Mapbox services.
assetPath
Link copied to clipboard
open fun assetPath(@Nullable() assetPath: String): ResourceOptions.Builder
The path to the folder where application assets are located.
baseURL
Link copied to clipboard
open fun baseURL(@Nullable() baseURL: String): ResourceOptions.Builder
The base URL that would be used to make HTTP requests.
build
Link copied to clipboard
open fun build(): ResourceOptions
dataPath
Link copied to clipboard
open fun dataPath(@Nullable() dataPath: String): ResourceOptions.Builder
The path to the map data folder.The implementation will use this folder for storing offline style packages and temporary data.The application must have sufficient permissions to create files within the provided directory.If a dataPath is not provided, the default location will be used (the application data path definedin the `Mapbox Common SystemInformation API`).
tileStore
Link copied to clipboard
open fun tileStore(@Nullable() tileStore: TileStore): ResourceOptions.Builder
The tile store instance.This setting can be applied only if tile store usage is enabled,otherwise it is ignored.If not set and tile store usage is enabled, a tile store at the defaultlocation will be created and used.
tileStoreUsageMode
Link copied to clipboard
open fun tileStoreUsageMode(@NonNull() tileStoreUsageMode: TileStoreUsageMode): ResourceOptions.Builder
The tile store usage mode.

Extensions

applyDefaultParams
Link copied to clipboard
Get a default ResourceOptions.Builder with Mapbox pre-defined options, and with the access token taken from the Android resources(if available).